package com.ych.SDK.alibaba.alipaySDK.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/21
 * Time: 14:19
 * Description:
 */
@Component
public class AlipayConfig {
    /**
     * 支付宝账号
     */
    public static String collection_account;

    @Value("${sdk.alipay.collection_account}")
    public void setCollection_account(String collection_account) {
        this.collection_account = collection_account;
    }


    /**
     * 公钥
     */
    public static String public_key;

    @Value("${sdk.alipay.public_key}")
    public void setPublic_key(String public_key) {
        this.public_key = public_key;
    }

    /**
     * 私钥
     */
    public static String private_key;

    @Value("${sdk.alipay.private_key}")
    public void setPrivate_key_key(String private_key) {
        this.private_key = private_key;
    }

    /**
     * 支付宝服务器主动通知商户服务器里指定的页面http/https路径。
     */
    public static String notify_url;

    @Value("${sdk.alipay.notify_url}")
    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    /**
     * 请求接口地址
     */
    public static String server_url;

    @Value("${sdk.alipay.server_url}")
    public void setServer_url(String server_url) {
        this.server_url = server_url;
    }

    /**
     * 支付宝分配给开发者的应用ID
     */
    public static String appid;

    @Value("${sdk.alipay.appid}")
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 仅支持JSON
     */
    public static String format;

    @Value("${sdk.alipay.format}")
    public void setFormat(String format) {
        this.format = format;
    }

    /**
     * 请求使用的编码格式，如utf-8,gbk,gb2312等
     */
    public static String charset;

    @Value("${sdk.alipay.charset}")
    public void setCharset(String charset) {
        this.charset = charset;
    }

    /**
     * 商户生成签名字符串所使用的签名算法类型，目前支持RSA2和RSA，推荐使用RSA2
     */
    public static String sign_type;

    @Value("${sdk.alipay.sign_type}")
    public void setSign_type(String sign_type) {
        this.sign_type = sign_type;
    }
}
